<?php

namespace app\admin\model;

use think\Model;

class Log extends Model
{
    /**
     * @return array
     * @throws \think\exception\DbException
     */
    public function getLists()
    {
        $limit = input('limit');
        $list = $this->order('add_time desc')->paginate($limit)->toArray();
        $list['code'] = 0;//用于前台数据表格判断成功字段
        return $list;
    }
}